const http = uni.$u.http
// 新品首发
export const getNewGoods = (data, config = { }) => 
	http.get('/index/goods/product', Object.assign({ }, config, {
		params: data,
	},)
)

// 人气推荐
export const getHotGoods = (data, config = { }) => 
	http.get('/index/goods/popular', Object.assign({ }, config, {
		params: data,
	},)
)

// 商品详情
export const getGoodsDetail = (data, config = { }) => 
	http.get('/index/goods/goodsDetail', Object.assign({ }, config, {
		params: data,
	},)
)

// 商品属性
export const getGoodsAttribute = (data, config = { }) => 
	http.get('/index/goods/goodsAttribute', Object.assign({ }, config, {
		params: data,
	},)
)

// 分类商品
export const getCategoryGoods = (data, config = { }) => 
	http.get('/index/goods/categoryGoods', Object.assign({ }, config, {
		params: data,
	},)
)

// 二级目录商品分类
export const getCategoryGoodsList = (data, config = { }) => 
	http.get('/index/goods/cateDetailGoodsList', Object.assign({ }, config, {
		params: data,
	},)
)
